<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>密码修改成功</title>
    <link rel="stylesheet" href="./css/success.css" type="text/css">
</head>
<body>
    <div class="container">
        <div class="success-message">
            <h2>✓ 密码修改成功</h2>
            <% if (request.getAttribute("successMessage") != null) { %>
                <p><%= request.getAttribute("successMessage") %></p>
            <% } else { %>
                <p>您的密码已成功修改！</p>
                <p>为了安全，请使用新密码重新登录。</p>
            <% } %>
        </div>
        
        <div style="text-align: center; margin-top: 30px;">
            <a href="login.jsp" class="btn" style="display: inline-block; padding: 12px 40px; font-size: 16px;">立即登录</a>
        </div>
    </div>
</body>
</html>

